package com.zhentao.day04;

public class PersonTest {

  public static void main(String[] args) {
    Teacher teacher = new Teacher();
    // 当有继承关系时, 子类拥有父类的所有非私有化属性和方法。

    teacher.age = 30 ;
    teacher.name = "zhentao" ;
    teacher.id = 1001 ;
    teacher.sex = false ;

    teacher.eat();
    System.out.println("teacher.name = " + teacher.name);
    System.out.println("teacher.getSuperName() = " + teacher.getSuperName());

  }
}
